import request from '@/utils/request'

// 查询垃圾分类督导导入列表
export function listSortingImportBase(query) {
  return request({
    url: '/standingbook/sortingImportBase/list',
    method: 'get',
    params: query
  })
}

// 查询垃圾分类督导导入详细
export function getSortingImportBase(batchNo) {
  return request({
    url: '/standingbook/sortingImportBase/' + batchNo,
    method: 'get'
  })
}

// 新增垃圾分类督导导入
export function addSortingImportBase(data) {
  return request({
    url: '/standingbook/sortingImportBase',
    method: 'post',
    data: data
  })
}

// 修改垃圾分类督导导入
export function updateSortingImportBase(data) {
  return request({
    url: '/standingbook/sortingImportBase',
    method: 'put',
    data: data
  })
}

// 删除垃圾分类督导导入
export function delSortingImportBase(batchNo) {
  return request({
    url: '/standingbook/sortingImportBase/' + batchNo,
    method: 'delete'
  })
}

export function importData(data) {
  return request({
    url: '/standingbook/sortingImportBase/importData',
    method: 'post',
    data: data
  })
}
